<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html">

	<h:head>
		<title>Grade horária de professores</title>
	</h:head>
	<h:body>
		<h:form>
			<h:panelGrid columns="2">
				<h:outputLabel value="Disciplina: " for="disciplina"></h:outputLabel>
				<h:inputText id="disciplina" value="#{disciplinaBean.disciplina.nome}"></h:inputText>
				
				<h:outputLabel value="Carga horária: " for="carga"></h:outputLabel>
				<h:inputText id="carga" value="#{disciplinaBean.disciplina.cargaHoraria}"></h:inputText>
				
				<h:commandButton value="Cadastrar" action="#{disciplinaBean.grava}"></h:commandButton>
			</h:panelGrid>			
		</h:form>
	</h:body>
</html>